from django.conf.urls import patterns, url

__author__ = 'Sea'

urlpatterns = patterns('com.kjssoft.rainbow.frame.views',
    url(r'save/to/album$', 'save_view_page'),
    url(r'save/to/album/(?P<album_instance>\d+)', 'save_view_page'),
    url(r'(?P<photo_instance>\d+)/show$', 'show_view_page'),
    url(r'(?P<photo_instance>\d+)/edit$', 'edit_view_page'),

    url(r'list$', 'list_view_page'),
    url(r'list/of/user/(?P<user_instance>\d+)$', 'list_of_user_view_page'),
    url(r'list/in/album/(?P<album_instance>\d+)$', 'list_in_album_view_page'),

    url(r'(?P<photo_instance>\d+)/comment/add$', 'add_comment_view_page'),
    url(r'(?P<photo_instance>\d+)/comment/(?P<comment_instance>\d+)/delete$', 'delete_comment_view_page'),
)
